<script language="php">
error_log("Calling scan.php!");
$req = print_r($_REQUEST, true);
$dirToScan = $_REQUEST["dir"];

if(!(file_exists($dirToScan) && is_readable($dirToScan)))
{
    error_log("Folder to scan $dirToScan does not exist or is not readable!");
    error_log("req: " . $req);
    error_log(print_r($GLOBALS, true));
    die("Giving up. req == " . $req);
}

error_log("About to start the clam.php file!");
exec("php -c php.ini clam.php $dirToScan >> scanMe.log");
</script>
